package com.gxy.upload;

import java.io.File;
import java.util.Arrays;
import java.util.Objects;

/**
 * Description:
 * author: Gaoxueyong
 * Create at: 2023/2/8 13:03
 */
public class Tss {
    private final static String IOS = ".ipa";
    private final static String ANDROID = ".apk";
    public static void main(String[] args) {
        File file = new File("D:\\fileTss");
//        Arrays.stream(Objects.requireNonNull(file.listFiles())).forEach(x-> System.out.println(x.getName()));
//        String filePath = "D:\\";
//        System.out.println(filePath.endsWith(File.separator));
//        filePath = "D:\\ass";
//        System.out.println(filePath.endsWith(File.separator));
//        System.out.println(String.format("%s%s%s","aaa",File.separator,".ipa"));

//        Arrays.stream(Objects.requireNonNull(file.listFiles())).filter(f -> f.getName().toLowerCase().endsWith(IOS) || f.getName().toLowerCase().endsWith(ANDROID)).forEach(x->{
//            System.out.println(x.getName());
//        });
//        String filePath = "D:\\fileTss\\cccc.ipa";
//        System.out.println(new File(filePath).renameTo(new File("D:\\fileTss\\ios-sit-1.7.1.ipa")));

        file = new File("D:\fileTss\\aaa.ipa");
        System.out.println(file.exists());
        file = new File("D:\\fileTss\\aaa.ipa");
        System.out.println(file.exists());
    }
}
